﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Controls.Primitives;
namespace HomeMediaBrowser
{
    /// <summary>
    /// Interaction logic for StretchBitmapButton.xaml
    /// </summary>
    /// 
    public partial class StretchBitmapButton : Button
    {
        public StretchBitmapButton()
        {
            InitializeComponent();
        }
        public static readonly DependencyProperty NoramlBitmapProperty = DependencyProperty.Register("NoramlBitmap", typeof(ImageSource), typeof(StretchBitmapButton), new FrameworkPropertyMetadata());
        public static readonly DependencyProperty HightlightBitmapProperty = DependencyProperty.Register("HightlightBitmap", typeof(ImageSource), typeof(StretchBitmapButton), new FrameworkPropertyMetadata());
        public static readonly DependencyProperty SelectBitmapProperty = DependencyProperty.Register("SelectBitmap", typeof(ImageSource), typeof(StretchBitmapButton), new FrameworkPropertyMetadata());
        public static readonly DependencyProperty DisableBitmapProperty = DependencyProperty.Register("DisableBitmap", typeof(ImageSource), typeof(StretchBitmapButton), new FrameworkPropertyMetadata());

        public static readonly DependencyProperty IsItemSelectedProperty = DependencyProperty.Register("IsItemSelected", typeof(Boolean), typeof(StretchBitmapButton), new FrameworkPropertyMetadata(false));

        public ImageSource NoramlBitmap
        {
            get { return (ImageSource)GetValue(NoramlBitmapProperty); }
            set { SetValue(NoramlBitmapProperty, value); }
        }
        public ImageSource HightlightBitmap
        {
            get { return (ImageSource)GetValue(HightlightBitmapProperty); }
            set { SetValue(HightlightBitmapProperty, value); }
        }
        public ImageSource SelectBitmap
        {
            get { return (ImageSource)GetValue(SelectBitmapProperty); }
            set { SetValue(SelectBitmapProperty, value); }
        }
        public ImageSource DisableBitmap
        {
            get { return (ImageSource)GetValue(DisableBitmapProperty); }
            set { SetValue(DisableBitmapProperty, value); }
        }
        public Boolean IsItemSelected
        {
            get { return (Boolean)GetValue(IsItemSelectedProperty); }
            set { SetValue(IsItemSelectedProperty, value); }
        }
    }
}
